/**
 * Feb 24, 2022
 */
package com.citahub.config;

import java.util.List;
import java.util.Arrays;

public class ResourceStubConfig {

  private String chainPath;
  
  private List<Resource> resources;

  public static class Resource {
    private String name;
    private String type;
    private String value;
    private String[] methods;

    public String getName() {
      return name;
    }

    public void setName(String name) {
      this.name = name;
    }

    public String getType() {
      return type;
    }

    public void setType(String type) {
      this.type = type;
    }

    public String getValue() {
      return value;
    }

    public void setValue(String value) {
      this.value = value;
    }

    public String[] getMethods() { return methods; }

    public void setMethods(String[] methods) { this.methods = methods; }

    @Override
    public String toString() {
      return "ResourceStubConfig{" + "name='" + name + '\'' + ", type='" + type + '\'' + ", value='"
          + value + '\'' + ", methods=" + Arrays.toString(methods) + '\'' + '}';
    }
  }

  public String getChainPath() {
    return chainPath;
  }

  public void setChainPath(String chainPath) {
    this.chainPath = chainPath;
  }

  public List<Resource> getResources() {
    return resources;
  }

  public void setResources(List<Resource> resources) {
    this.resources = resources;
  }

  @Override
  public String toString() {
    return "ResourceStubConfig{resourceConfig=" + resources + '}';
  }
}
